home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / C / Commander Demo / Commander Demo.rsrc / TEXT_5037_BREAK LEVEL.txt < prev    next >
Encoding:
Text File  |  1993-09-07  |  2.0 KB  |  34 lines

  1. BREAK¬†LEVEL (level; {page break})
  2.                                                                                     Pg 34-7
  3.  
  4. level              number      Number of break levels
  5. page break      number     Break level for which to do a page break
  6.  
  7.  
  8. Break level specifies on which sort level to cause break processing in a following report. Used in conjunction with ¬†ACCUMULATE to initiate break processing. There are two methods used to turn on break processing for layout reports. Refer to the topic ‚ÄòBreak¬†Processing‚Äô for information about the two methods.
  9.  
  10.  
  11. You must execute BREAK LEVEL and ¬†ACCUMULATE before every layout report for which you want to do break processing. These commands activate break processing for a layout report.
  12.  
  13. The level is the level to which you want to perform break processing. You must have sorted the records with at least that many levels. If you have sorted more levels, those levels will be printed as sorted, but will not be processed for breaks.
  14.  
  15. Each break level that is generated will print the corresponding Break areas and Header areas in the layout. There should be level Break areas in the layout. If there are more Break areas, they will be ignored and will not be printed.
  16.  
  17. The second (optional) argument, page break, is used to cause page breaks during printing.
  18.  
  19.  
  20. The following example prints a report with two break levels. The selection is sorted on four levels, but the BREAK LEVEL command specifies to break on only two levels. One field is accumulated with the ¬†ACCUMULATE command:
  21.  
  22.            ` Sort on four levels 
  23.  SORT SELECTION ([People]Dept; >; [People]Title; >; [People]Last; >; [People]First; >) 
  24.            ` Turn on break processing to 2 levels (Dept and Title)
  25.  BREAK LEVEL (2)
  26.  ACCUMULATE ([People]Salary)                   ` Accumulate the salaries
  27.  OUTPUT LAYOUT ([People]; "Dept salary") ` Select the report layout
  28.  PRINT SELECTION([People])                        ` Print the report
  29.  
  30.  
  31.  
  32. See also: ¬†ACCUMULATE, Break¬†Processing
  33.  
  34.